<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label id="ruleCode" style="width: 90px;"><@label key="ruleCode.C,colon">编码规则编号：</@label></label> <input type="text" name="ruleCode" value="${condition.ruleCode!''}" /></li>
                <li><label id="ruleText" style="width: 90px;"><@label key="ruleText.C,colon">编码规则描述：</@label></label> <input type="text" name="ruleText" value="${condition.ruleText!''}" /></li>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button id="st" type="submit"><@label key="query.B">查询</@label></button>
                        </div>
                    </div>
                </li>

            </ul>
        </div>
    </div>
</form>

<div class="pageContent">
    <table class="table" width="100%" layoutH="132">
        <thead>
            <tr>
                <th width="100" orderField="ruleCode"<#if (page.orderField?? && page.orderField == 'ruleCode')>class="${page.orderDirection!''}"</#if>><@label key="ruleCode.C">编码规则编号</@label></th>
                <th width="100" orderField="ruleText"<#if (page.orderField?? && page.orderField == 'ruleText')>class="${page.orderDirection!''}"</#if>><@label key="ruleText.C">编码规则描述</@label></th>
                <th width="100" orderField="preFix"<#if (page.orderField?? && page.orderField == 'preFix')>class="${page.orderDirection!''}"</#if>><@label key="preFix.C">编码前缀</@label></th>
                <th width="100" orderField="enableDateFlag"<#if (page.orderField?? && page.orderField == 'enableDateFlag')>class="${page.orderDirection!''}"</#if>><@label key="enableDateFlag.C">是否启用日期</@label></th>
                <th width="100" orderField="currentOrdinal"<#if (page.orderField?? && page.orderField == 'currentOrdinal')>class="${page.orderDirection!''}"</#if>><@label key="currentOrdinal.C">当前编号</@label></th>
                <th width="100" orderField="ordinalLength"<#if (page.orderField?? && page.orderField == 'ordinalLength')>class="${page.orderDirection!''}"</#if>><@label key="ordinalLength.C">编号长度</@label></th>
                <th width="100"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as number>
            <tr target="number_code" rel="${number.ruleCode!''}">
                <td>${number.ruleCode!''}</td>
                <td>${number.ruleText!''}</td>
                <td>${number.preFix!''}</td>
                <td><#if number.enableDateFlag == 0><@label key="no.C">否</@label><#else><@label key="yes.C">是</@label></#if></td>
                <td>${number.currentOrdinal!''}</td>
                <td>${number.ordinalLength!''}</td>
                <td><a class="btnSelect bringBack" value="categoryCode:'${category.categoryCode!''}', categoryText:'<@json_escape>${category.categoryText!''}</@json_escape>'" >选择</a></td>
            </tr>
            </#list> <#else>
            <tr target="number_code">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if> <#else>
            <tr target="number_code">
                <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</font>
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/panelBar.html">
</div>